
import unittest
from HTMLTestRunner import HTMLTestRunner
from api.base import Base
from setting import TEST_REPORT



if __name__ == '__main__':

    base = Base()
    base.login()

    # 1. 创建套件
    suite = unittest.TestLoader().discover('cases','test*.py')

    with open(TEST_REPORT,'wb') as f:
        runner = HTMLTestRunner(f,title='wshop测试报告',description='接口测试框架')
        runner.run(suite)
